package cn.springcloud.fix.demo.design.strategy;

import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

/**
 * 策略模式
 */
public class MyListTest {

    public static void main(String[] args) {
        //new MyList().sort(new NumberComparator());

        //策略模式
        List<Long> numbers = new ArrayList<>();

        Collections.sort(numbers, (o1, o2) -> 0);
    }
}
